package top.zackyoung.cloud.feign;

import feign.Contract;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author ZackYoung
 * @version 1.0
 * @description
 * @date 2021/5/12 20:45
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
public class FeignApplication {
    /**
     * 使用feign自带的注解，同时spring的请求注解会失效
     *
     * @return
     */
//    @Bean
//    public Contract feignContract() {
//        return new feign.Contract.Default();
//    }

    public static void main(String[] args) {
        SpringApplication.run(FeignApplication.class, args);
    }
}